package com.atguigu.gmall.seckill.mapper;

import com.atguigu.gmall.seckill.entity.SeckillGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.atguigu.gmall.seckill.entity.SeckillGoods
 */
//操作数据库 表 seckill_goods
public interface SeckillGoodsMapper extends BaseMapper<SeckillGoods> {

    //查询指定日期参与秒杀的所有商品
    List<SeckillGoods> getSeckillGoodsByDay(@Param("date") String date);

    //1数据库扣库存
    void updateStock(@Param("id") Long id);
}




